// 前端路由映射表
export const constantRouterComponents = {
    // 基础页面 layout 必须引入
    index: () => import(/* webpackChunkName: "layout" */ '@/layout/index.vue'),

    // 动态引入的页面组件
    // 终端管理start
    terminal:  () => import(/* webpackChunkName: "terminal" */ '@/views/terminal/index.vue'),
    'terminal-list': () => import(/* webpackChunkName: "terminal" */ '@/views/terminal/subViews/terminal-list.vue'),
    'terminal-info': () => import(/* webpackChunkName: "terminal-info" */ '@/views/terminal/subViews/terminal-info.vue'),

    // 终端管理end
    template: () => import(/* webpackChunkName: "strategy-template" */ '@/views/strategy/components/template/template-list.vue'), // 模板管理

    // 策略管理start
    strategy: () => import(/* webpackChunkName: "strategy-index" */ '@/views/strategy/index.vue'),
    'strategy-license': () => import(/* webpackChunkName: "strategy-license" */ '@/views/strategy/components/license/license.vue'), // 证书管理
    'strategy-userstrategy': () => import(/* webpackChunkName: "strategy-userstrategy" */ '@/views/strategy/components/userstrategy/userstrategy.vue'), // 用户策略
    'strategy-cipher': () => import(/* webpackChunkName: "strategy-cipher" */ '@/views/strategy/components/cipher/cipher.vue'), // 口令控制
    'strategy-whiteList': () => import(/* webpackChunkName: "strategy-whiteList" */ '@/views/strategy/components/whiteList/white-list.vue'), // 白名单
    'strategy-blackList': () => import(/* webpackChunkName: "strategy-blackList" */ '@/views/strategy/components/blackList/black-list.vue'), // 黑名单
    'strategy-docControl': () => import(/* webpackChunkName: "strategy-docControl" */ '@/views/strategy/components/docControl/doc-control.vue'), // 文件管控
    'strategy-docOut': () => import(/* webpackChunkName: "strategy-docOut" */ '@/views/strategy/components/docOut/doc-out.vue'), // 外部介质管控
    'strategy-portManagement': () => import(/* webpackChunkName: "strategy-portManagement" */ '@/views/strategy/components/portManagement/port-management.vue'), // 端口管理
    'strategy-firewall': () => import(/* webpackChunkName: "strategy-firewall" */ '@/views/strategy/components/firewall/firewall.vue'), // 入站规则
    'strategy-firewallout': () => import(/* webpackChunkName: "strategy-firewallout" */ '@/views/strategy/components/firewallout/firewallout.vue'), // 出站规则
    //'strategy-modelSetting': () => import(/* webpackChunkName: "strategy-modelSetting" */ '@/views/strategy/components/modelSetting/model-setting.vue'), // 模式管理
    // 策略管理end

    // 用户管理start
    user: () => import(/* webpackChunkName: "user-index" */ '@/views/user/index.vue'),
    'user-list': () => import(/* webpackChunkName: "user-list" */ '@/views/user/list/index.vue'), // 用户列表
    // 用户管理end

    // 角色管理start
    role: () => import(/* webpackChunkName: "role-index" */ '@/views/role/index.vue'),
    'role-roles': () => import(/* webpackChunkName: "role-roles" */ '@/views/role/components/roles/roles.vue'), // 角色管理
    'role-permission': () => import(/* webpackChunkName: "role-permission" */ '@/views/role/components/permission/permission.vue'), // 权限管理
    // 角色管理end

    // 日志管理start
    logs: () => import(/* webpackChunkName: "logs-index" */ '@/views/logs/index.vue'),
    'log-serverlog': () => import(/* webpackChunkName: "logs-serverlog" */ '@/views/logs/components/serverlog/serverlog.vue'), // 服务器日志
    'log-clientLog': () => import(/* webpackChunkName: "logs-clientLog" */ '@/views/logs/components/clientLog/clientLog.vue'), // 客户端日志
    'role-dbbackup': () => import(/* webpackChunkName: "logs-dbbackup" */ '@/views/logs/components/dbbackup/dbbackup.vue'), // 数据库日志
    // 日志管理end
}

export const IndexEnum={
    'index':0,
    'strategy':1,
    'template':2,
    'terminal':3,
    'user':4,
    'role':5,
    'logs':6,
    'strategy-license': 11, // 证书管理
    'strategy-cipher': 12, // 口令控制
    'strategy-whiteList': 13, // 白名单
    'strategy-blackList': 14, // 黑名单
    'strategy-docControl': 15, // 文件管控
    'strategy-docOut': 16, // 外部介质管控
    'strategy-portManagement': 17, // 端口管理
    'strategy-firewall': 18, // 入站规则
    'strategy-firewallout': 19, // 出站规则
    'strategy-userstrategy': 110, // 用户策略
    //'strategy-modelSetting': 111, // 模式管理
    'role-roles': 51, // 角色管理
    'role-permission': 52, // 权限管理
    'log-serverlog': 61, // 服务器日志
    'log-clientLog': 62, // 客户端日志
    'role-dbbackup': 63, // 数据库日志
}
